package cn.funeralobjects.upms.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author FuneralObjects
 * Create date: 2019/11/28 3:31 PM
 */
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_group_tags")
@IdClass(EGroupTag.class)
@EqualsAndHashCode
public class EGroupTag implements Serializable {
    /**
     * 组id
     */
    @Id
    private Integer groupId;
    /**
     * 组标签
     */
    @Id
    private String tag;
}
